Skip to content

Parse braced boxed expressions in the LaTeX stage - #72

Merged
suleman-uzair merged 3 commits into
mainfrom
fix/boxed-command
Nov 20, 2026
Merged

suleman-uzair merged 3 commits into
mainfrom
fix/boxed-command

Conversation

@suleman-uzair

@suleman-uzair suleman-uzair commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

This PR adds \boxed{...} as a typed UnaryFunctions node with unary: "boxed" and its grouped contents. It retains nested and empty boxes, decimal markers, and scripted boxed bases. Braces are required.

Refs plurimath/plurimath#541 and plurimath/plurimath#607.

BinaryFunctions and its LML declaration retain unary_functions. Boxed-only grammar alternatives now place both script orders (\boxed{x}_{i}^{2} and \boxed{x}^{2}_{i}) in the existing PowerBase node, so the second script stays on the enclosure. Scripts within braces stay inside their own argument.

Validation: 77 focused examples pass on Ruby 4.0.1 with Parsanol 1.3.134, including Ruby/native combined-script checks for all three decimal markers (0 failures or skips, exit 0). Deterministic artifact compilation, model freshness, LML verification, and git diff --check pass. Frozen corpus rows, oracle exports and submodule pins are unchanged; full replay remains with CI.

Downstream consumer mapping and its temporary pin are in plurimath/plurimath#610. This supplies the parser node; the enclosure writer work and successor expectations remain separate.

@suleman-uzair
suleman-uzair marked this pull request as ready for review November 20, 2026 16:24
@suleman-uzair
suleman-uzair merged commit 1547655 into main Nov 20, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant